﻿using Nemerle.Collections;
using Nemerle.Text;
using Nemerle.Utility;
using Nemerle.Peg;

using System;
using System.Collections.Generic;
using System.Linq;

namespace Nemerle2.Compiler
{
  /// <summary>
  /// Type or macro class member.
  /// </summary>
  [Record]
  public variant PMember : PDeclarationBase
  {
    | Macro
      {
        TypeName        : LocatedList[PId];
        MainRule        : PRule;
        AdditionalRules : LocatedList[PRule];
        Code            : VToken[string];
      }
  }
}
